<template>
  <div>
    <!-- 头部 -->
    <div>
      <van-nav-bar>
        <template #left>
          <h1 @click="$router.back()">
            <van-icon name="arrow-left" />
          </h1>
        </template>
        <template #title>
          <div class="qb">
            <p>快上车代驾</p>
          </div>
        </template>
        <template #right></template>
      </van-nav-bar>
    </div>
    <!-- 内容 -->
    <div class="box">
      <!-- 今日订单 -->
      <div>
        <span>{{$store.state.plugins.length}}</span>
        <span>今日订单</span>
      </div>
      <!-- 在线时长 -->
      <div>
        <span>0</span>
        <span>在线时长</span>
      </div>
      <!-- 今日收入 -->
      <div>
        <span>0.0</span>
        <span>今日收入</span>
      </div>

      <!-- 订单详细 -->
    </div>
    <!-- 底部 -->
    <div class="foot">
      <div class="footer">
        <div class="left">上班中...</div>
        <router-link to="/recev" tag="div" class="right">附近订单</router-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
.box {
  width: 90%;
  height: 100px;
  overflow: hidden;
  margin: 30px auto 10px;
  box-shadow: #7fffaa 0px 0px 10px;
}
.box span {
  display: block;
  text-align: center;
  margin-bottom: 8px;
}
.box div {
  float: left;
  margin-left: 10%;
  margin-top: 30px;
}
.foot {
  width: 100%;
  margin: 0 auto;
  position: fixed;
  bottom: 30px;
  overflow: hidden;
}
.footer {
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
}
.footer .left {
  float: left;
  width: 60%;
  height: 40px;
  background: skyblue;
  text-align: center;
  line-height: 40px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.footer .right {
  float: right;
  width: 39%;
  background: skyblue;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 8px;
}
</style>